package com.maezia.tdr.common.exception;

import com.maezia.tdr.common.enums.StatusCodeEnum;
import lombok.Getter;

@Getter
public class TokenExpiredException extends Exception {

    private StatusCodeEnum codeEnum;

    public TokenExpiredException() {}

    public TokenExpiredException(String message) {
        super(message);
    }

    public TokenExpiredException(StatusCodeEnum codeEnum) {
        super(codeEnum.getMessage());
        this.codeEnum = codeEnum;
    }
}
